const version = 1;
const noteList = [
  { id: '232', title: '123', content: 'hello word' },
  { id: '123', title: '345', content: 'hello word' },
  { id: '435', title: '421', content: 'hello word' },
  { id: '14', title: '42141', content: 'hello word' },
  { id: '14124', title: '42141', content: 'hello word' },
];

export default {
  '/api/version/': { version },
  '/api/notelist': (req: any, res: any) => {
    setTimeout(() => {
      res.send({
        data: noteList,
      });
    }, 2000);
  },
  'PUT /api/notes/:index': (req: any, res: any) => {
    setTimeout(() => {
      const { index } = req.params;
    }, 300);
  },
};
